package com.sam.spring.chapter2.helloworld;

import com.sam.spring.chapter1.helloworld.HelloAPI;

public class HelloImpl4 implements HelloAPI {

	private String message;
	private int index;

	// setter方法
	public void setMessage(String message) {
		this.message = message;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public void sayHello() {
		System.out.println(index + " : " + message);
	}

}
